package Day09;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Example2 {
    private static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int result = devided();
        System.out.println(result);

    }

    public static int devided() throws InputMismatchException,ArithmeticException{
        int number1 = getNumber();
        int number2 = getNumber();
        return number1 / number2;
    }

    public static int getNumber() throws InputMismatchException{
        System.out.println("请输入一个数字");
        int number = sc.nextInt();
        return number;
    }
}
